
public class caoZuoTest {
	public static void main(String[] args) throws InstantiationException {
		caoZuo caoZuo = new caoZuo(001);
		System.out.println("存款500元");
		caoZuo.cunqian(500);
		System.out.println(caoZuo.getBalance1());// 输出账户余额
		try {
			System.out.println("取款300元");
			caoZuo.quqian(300);
		} catch (Exception e) {
			// TODO: handle exception
		} finally {

			System.out.println(caoZuo.getBalance1());
		}
		try {
			System.out.println("取款400元");
			caoZuo.quqian(400);
		} catch (Exception e) {
			// TODO: handle exception
			e.printStackTrace();
		} finally {
			System.out.println(caoZuo.getBalance1());
		}

	}

}
